//
//  Utils.h
//  app
//
//  Created by 王宇宙 on 2017/12/26.
//  Copyright © 2017年 Facebook. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>

typedef void (^SuccessBlock) (id responseObject);
typedef void (^FailedBlock) (id error);

@interface Utils : NSObject

/** Post 请求 */
+ (void)PostWithUrlStr:(NSString *)url params:(NSDictionary *)dic SuccessBlock:(SuccessBlock)successBlock FailureBlock:(FailedBlock)failureBlock;

/** Get 请求 */
+ (void)GetWithUrlStr:(NSString *)url params:(NSDictionary *)dic SuccessBlock:(SuccessBlock)successBlock FailureBlock:(FailedBlock)failureBlock;

@end
